package com.by.bean;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@ApiModel("用户")
public class User {

    @ApiModelProperty("用户id")
    int id;
    @ApiModelProperty("账号")
    String account;
    @ApiModelProperty("用户密码")
    String password;
    @ApiModelProperty("用户类型1 平台用户\n" +
            "2 客户\n" +
            "3 供应商\n" +
            "4 货代")
    int type;

    public User(String account, String password, int type) {
        this.account = account;
        this.password = password;
        this.type = type;
    }
}
